package P2PClient.GUI.Frames;

import java.awt.Dimension;

import javax.swing.JFrame;

import P2PClient.GUI.Panels.LoginPanel;

public class P2PClientFrame extends JFrame{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public P2PClientFrame() {
		super();
		initialize();
	}

	private void initialize() {
        
		this.setSize(new Dimension(550, 326));
        this.setTitle("P2PClient");
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);	
        this.setVisible(true);
        this.setResizable(false);
        this.setContentPane(new LoginPanel(this));
		addWindowListener(new java.awt.event.WindowAdapter() {
			public void windowClosing(java.awt.event.WindowEvent e) {		

				System.out.println("Aplication closed!!!");

			}
		});
			
	}
	
}
